package com.ruoyi.chy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 积分兑换对象 integral_exchange
 * 
 * @author liuweichao
 * @date 2025-05-30
 */
public class IntegralExchange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兑换编号 */
    private Integer id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Integer userId;

    /** 兑换积分 */
    @Excel(name = "兑换积分")
    private Integer exchangeValue;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Integer exchangeGid;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setExchangeValue(Integer exchangeValue) 
    {
        this.exchangeValue = exchangeValue;
    }

    public Integer getExchangeValue() 
    {
        return exchangeValue;
    }

    public void setExchangeGid(Integer exchangeGid) 
    {
        this.exchangeGid = exchangeGid;
    }

    public Integer getExchangeGid() 
    {
        return exchangeGid;
    }

    public void setExchangeTime(Date exchangeTime) 
    {
        this.exchangeTime = exchangeTime;
    }

    public Date getExchangeTime() 
    {
        return exchangeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("exchangeValue", getExchangeValue())
            .append("exchangeGid", getExchangeGid())
            .append("exchangeTime", getExchangeTime())
            .toString();
    }
}
